<template>
  <div>
    <input type="file" @change="handleFileChange" />
  </div>
</template>

<script>
export default {
  methods: {
    handleFileChange(e) {
      const [file] = e.target.files;

      const reader = new FileReader();
      reader.readAsText(file, "utf-8");
      reader.onload = function () {
        // console.log(reader.result);
      };
    },
  },
};
</script>

<style lang="less" scoped></style>
